package net.ericaro.neojavagen.blocks;

/**
 * <b>IfThenElseStatementNoShortIf</b> ::= "if" "(" <{@link net .ericaro .neojavagen .expressions .Expression Expression}> ")" <
 * {@link net .ericaro .neojavagen .blocks .StatementNoShortIf StatementNoShortIf}> "else" <{@link net .ericaro .neojavagen .blocks .StatementNoShortIf
 * StatementNoShortIf}>
 * 
 * @author eric@ericaro.net
 */
public class IfThenElseStatementNoShortIf extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.blocks.StatementNoShortIf {
	private net.ericaro.neojavagen.expressions.Expression expression;

	private net.ericaro.neojavagen.blocks.StatementNoShortIf statementNoShortIf1;

	private net.ericaro.neojavagen.blocks.StatementNoShortIf statementNoShortIf2;

	public IfThenElseStatementNoShortIf(net.ericaro.neojavagen.expressions.Expression expression, net.ericaro.neojavagen.blocks.StatementNoShortIf statementNoShortIf1, net.ericaro.neojavagen.blocks.StatementNoShortIf statementNoShortIf2) {
		super();
		this.expression = expression;
		this.statementNoShortIf1 = statementNoShortIf1;
		this.statementNoShortIf2 = statementNoShortIf2;
	}

	public net.ericaro.neojavagen.expressions.Expression getExpression() {
		return expression;
	}

	public net.ericaro.neojavagen.blocks.StatementNoShortIf getStatementNoShortIf1() {
		return statementNoShortIf1;
	}

	public net.ericaro.neojavagen.blocks.StatementNoShortIf getStatementNoShortIf2() {
		return statementNoShortIf2;
	}

	public void setExpression(net.ericaro.neojavagen.expressions.Expression expression) {
		this.expression = expression;
	}

	public void setStatementNoShortIf1(net.ericaro.neojavagen.blocks.StatementNoShortIf statementNoShortIf1) {
		this.statementNoShortIf1 = statementNoShortIf1;
	}

	public void setStatementNoShortIf2(net.ericaro.neojavagen.blocks.StatementNoShortIf statementNoShortIf2) {
		this.statementNoShortIf2 = statementNoShortIf2;
	}

	@Override
	public java.lang.String toString() {
		return print("if", "(", expression, ")", statementNoShortIf1, "else", statementNoShortIf2);
	}
}
